using UnityEngine;
using QFramework;

namespace QFramework.Monk
{
	public partial class Hp : PowerUp
	{
		void Start()
		{
			// Code Here
		}

		protected override void Execute()
		{
			if (AppStart.curHp.Value<AppStart.maxHp.Value)
			{
				AudioKit.PlaySound("hp");
				AppStart.curHp.Value++;
				
			}
			this.gameObject.DestroySelfGracefully();
		}
		
		protected override bool CanTriggerFly()
		{
			//是否满血
			return AppStart.curHp.Value<AppStart.maxHp.Value;
		}
	}
}
